<html>
	<head>
		<title></title>
	</head>
	<body>
		<div id="div1"></div>
		<div id="div1">
			<div id="div2">
				<div id="div3">
					<a id="test"></a>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="js/jquery.min.js" ></script>
		<script>
			console.log($($("#test").parents()[2]))
		</script>
	</body>
</html>